package com.manage.utils;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CacheUtils {

    //临时代替redis
    private static Map<String, Object> cache = new ConcurrentHashMap<String, Object>();

    public static void saveCache(String key, Object value){
        cache.put(key, value);
    }

    public static Object getCache(String key){
        return cache.get(key);
    }
}
